package com.ouran.service.information;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Service;

import com.ouran.dao.information.InformationDao;
import com.ouran.model.information.Information;

/**
 * 文章资讯模块Service实现类
 * @version 1.0
 * Date 2018/09/17
 */
@Service("informationServiceImpl")
public class informationServiceImpl implements informationService {
	
	/**
	 * 引用文章资讯模块Dao
	 */
	@Resource
	InformationDao informationDaoImpl;
	HttpSession session;
	HttpServletRequest request;
	
	
	/**
	 * 返回文章资讯list
	 * @return
	 */
	@Override
	public List<Information> getInformationManage() {
		return informationDaoImpl.getInformationManage();
	}
	
	/**
	 * 新增文章
	 * @param infor
	 */
	@Override
	public void addInfor(Information infor) {
		this.informationDaoImpl.addInformation(infor);
	}



}
